import { request } from '@/request/request'

// 请求歌手详情
export const getSingerInfo = (params) => request('/artist/detail', params)

// 请求歌手热门50首
export const getSingerTopSongs = (params) => request('/artist/top/song', params)

// 请求专辑列表 再用专辑id查询专辑信息
export const getAlbumInfo = (params) => request('/artist/album', params)

// 请求专辑详情信息
export const getAlbumDetail = (id) => request('/album', { id })

// 收藏歌手
export const collectSinger = (params) => request('/artist/sub', params)

// 请求收藏的歌手列表
export const getCollentSinger = (params) => request('/artist/sublist', params)

// 获取歌手mv数据
export const getSingerMvDetail = (params) => request('/artist/mv', params)

// 获取歌手mv详情
export const getSingerMvInfo = (params) => request('/mv/detail', params)

// 获取mv地址
export const getMvUrl = (params) => request('/mv/url', params)

// 获取mv评论
export const getMvComment = (params) => request('/comment/mv', params)

// mv点赞
export const setLikeMv = (params) => request('/resource/like', params)

// 获取用户喜欢mv的列表
export const getUserLikeList = (params) => request('/playlist/mylike', params)

// 收藏mv
export const setCollectVideoMv = (params) => request('/video/sub', params)
export const setCollectMv = (params) => request('/mv/sub', params)

// 请求歌手专辑详情
export const getSingerAlbumInfo = (params) => request('/album', params)

// 获取专辑评论
export const getAlbumComment = (params) => request('/comment/album', params)

// 获取已收藏专辑列
export const getCollectAlbum = (params) => request('/album/sublist', params)

// 收藏专辑-xx
export const collectAlbum = (params) => request('/album/sub', params)

// 请求视频详情
export const getVideoDetail = (params) => request('/video/detail', params)

// 获取视频播放地址
export const getVideoUrl = (params) => request('/video/url', params)

// 获取视频评论
export const getVideoComment = (params) => request('/comment/video', params)
